package com.sunshine.demo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author: sanglei
 * @date: 2018-11-01 14:33
 * @description:
 */
@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DoSomething {

    String key();

    String cacheName();

    boolean needLog() default false;
}
